package com.victualler.product.goods.repository;

import com.victualler.core.base.repository.IBaseQueryRepository;
import com.victualler.core.common.dto.PageDto;
import com.victualler.product.goods.entity.GoodsMainDao;
import com.victualler.product.goods.dto.request.GoodsShowRequestDto;

/**
 * @Aouthor Guoshichang
 * @Date 9:34 on 2018/6/27.
 * @Function 封装用于复杂sql查询的API. 为每个实体的repository层提供便利操作
 */
public interface GoodsMainQueryRepository extends IBaseQueryRepository<GoodsMainDao,Long> {

    /**
     * @author Guoshichang
     * @since 13:39 on 2018/7/7.
     * @param goodsShowRequestDto
     * @param pageNo
     * @param limit
     * @Function  根据条件入参PermissionRequestDto动态分页查询权限
     */
    public PageDto<GoodsMainDao> getGoodsByRequestDto(GoodsShowRequestDto goodsShowRequestDto, int pageNo, int limit);
}
